<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>供应商数据表</title>
    <link rel="stylesheet" href="__PUBLIC__static/css/amazeui.min.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__static/css/bootstrap.css"/>
    <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_589437_oywwabwu4ucy2e29.css">
    <style type="text/css">
        body{
            background-color: #f7f7f7;
        }
        .table-box{
            background-color: #fff;
            border: 1px solid #d3d3d3;
            border-top-right-radius: 0;
            border-top-left-radius: 0;
            padding:  15px 15px;
            margin-top:2em;
        }
        a{
            color: #333333;
        }
    </style>
</head>
<body>
<div class="table-box am-u-lg-8 am-u-lg-offset-2" >
    <form action="supplier" method="post" >
        <!--查询日期-->
        <div class="am-form am-form-horizontal">
            <div class="am-form-group am-form-success am-form-icon am-form-feedback" >
                <label  class="am-u-sm-2 am-form-label">查询日期</label>
                <label  class="am-u-sm-9 am-form-label">{$name}</label>

                    <a class="am-btn am-btn-success am-fr"  href="__HOME__xx/outlogin" style="color: #fff;">  <b>  退出</b></a>

            </div>





        </div>


        <div class="am-form am-form-inline" style="display: inline-block">


            <div class="am-form-group am-form-icon">
                <i class="am-icon-calendar"></i>
                <input type="date" name="initial" class="am-form-field" value='' name="create_time" >
            </div>
            <div class="am-form-group am-form-icon">
                <i class="am-icon-calendar"></i>
                <input type="date" name="over" class="am-form-field" value='' name="close_time" >
            </div>
            <span class="am-form-group am-form-icon">
                    <button class="am-btn am-btn-default" type="submit">查询</button>
                </span>
        </div>
        <div class="am-input-group" style="display: inline-block">

        </div>


    </form>
    <table class="am-table">
        <tr>
            {if condition="$create_time eq '0'"}
            <th><a href="supplier?data_sort=asc">时间<i class="iconfont   icon-px_daoxu-copy"></i></a></th>
            {elseif condition="$create_time eq '1'"}
            <th><a href="supplier?data_sort=desc">时间<i class="iconfont   icon-px_zhengxu-copy"></i></a></th>
            {else/}
            <th><a href="supplier?data_sort=asc">时间{$create_time}</a></th>
            {/if}

            <th>平台</th>
            <th>游戏</th>
            <th>区服</th>
            {if condition="$pay eq '0'"}
            <th><a href="supplier?pay_sort=asc">充值<i class="iconfont   icon-px_daoxu-copy"></a></th>
            {elseif condition="$pay eq '1'"}
            <th><a href="supplier?pay_sort=desc">充值<i class="iconfont   icon-px_zhengxu-copy"></i></a></th>
            {else/}
            <th><a href="supplier?pay_sort=asc">充值</a></th>
            {/if}
            {if condition="$adrate eq '0'"}
            <th><a href="supplier?adrate_sort=asc">广告费<i class="iconfont   icon-px_daoxu-copy"></a></th>
            {elseif condition="$adrate eq '1'"}
            <th><a href="supplier?adrate_sort=desc">广告费<i class="iconfont   icon-px_zhengxu-copy"></i></a></th>
            {else/}
            <th><a href="supplier?adrate_sort=asc">广告费</a></th>
            {/if}
            <th>注册数</th>



        </tr>

        {foreach $vo as $k=>$v}

        <tr>
            <td>{$v.create_time}</td>
            <td>{$v.terrace}</td>
            <td>{$v.game}</td>
            <td>{$v.server}</td>
            <td>￥{$v.pay}</td>
            <td>￥{$v.adrate}（{$v.ratio}%）</td>
            <td>{$v.number}</td>
        </tr>
        {/foreach}


    </table>
    <div class="am-u-sm-3"><b>充值总金额</b>：￥{$pays}</div>
    <div class="am-u-sm-5">{$pages}</div>
    <div class="am-u-sm-3"><b>广告费总金额</b>：￥{$adrates}</div>

    <script src="__PUBLIC__static/js/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">


    </script>
</div>
</body>
</html>